﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using LabChecker.Models;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;

namespace LabChecker.ViewModels
{
    public class Registration
    {
        public Student Student { get; set; }
        public InternalLogin Login { get; set; }
        public List<SelectListItem> AllGroups { get; set; }
        [Required]
        [Display(Name="Group")]
        public int SelectedGroupId { get; set; }
        [Required]
        public string Password { get; set; }
        [Compare("Password")]
        public string ConfirmPassword { get; set; }
    }
}